package com.service;

import java.util.List;
import java.util.Map;

import com.entity.ClassAndUser;
import com.entity.ClassEvaluation;
import com.entity.ClassInfo;
import com.entity.EvaItems;
import com.entity.User;

public interface ClassService {
	/**
	 * 根据用户id获取课程信息
	 */
	public List<ClassInfo> getClassInfoByUserId(User user) throws Exception;
	
	/**
	 * 查询课程评价信息
	 */
	public List<ClassEvaluation> getClassEvaluationInfoByUserId(User user) throws Exception;
	
	/**
	 * 查询课程评价信息(教师)
	 */
	public List<ClassEvaluation> getClassEvaluationInfoForTea(User user) throws Exception;
	
	/**
	 * 根据用户id获取课程信息
	 */
	public List<ClassInfo> getAllClassInfo() throws Exception;
	
	/**
	 * 根据classid获取课程评价总数
	 */
	public Integer getAllEvaPeople(Long classId) throws Exception;
	
	/**
	 * 获取评价详情
	 */
	public List<ClassEvaluation> getEvainfo(Long classId)throws Exception;
	
	/**
	 * 添加课程信息
	 */
	public void addClass(String name,String class_introduce,Integer class_sum)throws Exception;
	
	/**
	 * 导入课程预览
	 */
	public Map<String, Object> getImportClassDetails(List<List<String>> rows) throws Exception;
	
	/**
	 * 获取课堂评价标准
	 */
	public List<EvaItems> getEvaItems(EvaItems evaItems) throws Exception;
	
	/**
	 * 更新课堂评价标准
	 */
	public Integer modEI(EvaItems ei)throws Exception;
	
	/**
	 * 删除评价标准
	 */
	public void delEI(Long id)throws Exception;
	
	/**
	 * 新增评价标准
	 */
	public void addEI(EvaItems ei)throws Exception;
	
	/**
	 * 添加课程对应用户信息
	 */
	public void addClassAndUser(ClassAndUser cu) throws Exception;
}
